package test2;

public class Test2 {
    public  static void main(String[] args){
        //创建旧手机对象
        OldPhone op = new OldPhone();
        //创建新手机对象
        NewPhone np = new NewPhone();
        //调用成员方法
        op.sendMessage();
        op.call();
        np.call();
        np.playGame();
        np.sendMessage();
    }
}
